package com.love.cloud.common.security.component;

import org.springframework.security.oauth2.provider.token.DefaultAuthenticationKeyGenerator;

/**
 * @author hongdongqu
 */
public class CustomAuthGeneratorFactory {

    public static DefaultAuthenticationKeyGenerator getGenerator(boolean isOnly){
        if(isOnly){
            return new CustomAuthenticationKeyUserOnlyGenerator();
        }else{
            return new CustomAuthenticationKeyGenerator();
        }
    }
}
